package com.xmy.cultivate.service;

import org.quartz.Job;
import org.quartz.SchedulerException;

import java.time.LocalDate;
import java.util.Map;

public interface QuartzService {
//    public void scheduleJob(String jobName, String cronExpression) throws Exception;

//    public void scheduleJob(LocalDate startDate, LocalDate endDate, String pushTime) throws Exception;

    public void setSchedulDailyJob(String id,LocalDate startDate, LocalDate endDate, String pushTime) throws Exception;

    public void listScheduledJobs() throws SchedulerException;

    public void addJobWithCron(Class<? extends Job> jobClass, String jobName, String cronExpression, Map<String, Object> params) throws Exception;

}
